package com.balabala.gym_goods.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("tb_category")
public class Category implements Serializable{

    //主键
    @TableId(type = IdType.AUTO)
    private Long id;

    //分类名称
    private String name;

    //分类编号
    private String serial;

    //状态
    private String state;

    //父级id
    private Long parentId;

    //层级
    private String level;

    //图标地址
    private String iconUrl;

    //排序
    private String sort;

    //创建时间
    @TableField("create_time")
    private Date createTime;

    //更新时间
    @TableField("update_time")
    private Date updateTime;

}
